// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import axios from 'axios'
import VueAxios from 'vue-axios'
import Qs from 'qs'
import App from './App'
import router from './router'
import './../static/css/reset.css'
import './../static/css/border.css'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import echarts from 'echarts';
import './../static/css/publicStyle.css';
import 'babel-polyfill';
import '../src/assets/css/global.css'
//引入 Froala Editor js file.
require('froala-editor/js/froala_editor.pkgd.min');
//引入中文语言包
require('froala-editor/js/languages/zh_cn')
    //引入 Froala Editor css files.
require('froala-editor/css/froala_editor.pkgd.min.css');
require('font-awesome/css/font-awesome.css');
require('froala-editor/css/froala_style.min.css');

// Import and use Vue Froala lib.
import jQuery from 'jquery'
import VueFroala from 'vue-froala-wysiwyg'
import ajaxCommon from './ajaxCommon';
Vue.prototype.ajaxCommon = ajaxCommon;
window.$ = jQuery;
Vue.use(VueFroala);
Vue.use(VueAxios, axios);
Vue.use(Qs);

Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.prototype.$echarts = echarts;
/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
});